<template>
	<!-- 弹框开始 -->
	<uni-popup ref="popup" type="bottom" :showPopup="true">
		<view class="like">
			<view class="like-tittle">
				产品参数
				<i class="iconfont icon-searchclose" @click="close" />
			</view>
			<view class="like-desc">
				<view class="like-desc-box" v-for="item,index in Detail" :key="index" >
					<view class="like-desc-box-t">
						{{item.name}}
					</view>
					<view class="like-desc-box-b">
						{{item.content}}
					</view>
				</view>
			</view>
			<!-- 底部操作栏 -->
			<view class="footer">
				<button class="add-cart-btn btn-class" @click="submit">完成</button>
			</view>
		</view>
	</uni-popup>
</template>
<script>
	import {
		mapGetters
	} from 'vuex'
	export default {
		components: {},
		data() {
			return {
				imgUrl: this.$apiFun.imgUrl,
				host: this.$apiFun.host,
				Detail:[],
			}
		},
		computed: {
			...mapGetters([
				'addrObj'
			]),
		},
		mounted() {},
		methods: {
			open(data) {
				this.Detail = data
				this.$refs.popup.open()
			},
			close() {

				this.$refs.popup.close()
			},
			submit() {
				this.$refs.popup.close()
			},
		},
		onReachBottom() {

		},

	}
</script>

<style scoped lang="less">
	// 置顶弹框
	.like {
		width: 100%;
		background-color: #FFFFFF;
		border-radius: 20rpx 20rpx 0 0;
		padding: 0 40rpx 100rpx;
		box-sizing: border-box;

		.like-tittle {
			width: 100%;
			height: 100rpx;
			line-height: 100rpx;
			font-size: 34rpx;
			color: #131313;
			justify-content: space-between;
			display: flex;
			align-items: center;

			.iconfont {
				font-size: 40rpx;
			}
		}

		.like-desc {
			min-height:400rpx;
			font-size: 25rpx;
			color: #5c5c5c;
			margin: 0 auto 40rpx;
			text-align: left;
			.like-desc-box{
				display: flex;
				align-items: flex-start;
				padding: 40rpx 0;
				box-sizing: border-box;
				border-bottom: 1rpx solid #e6e6e6;
				.like-desc-box-t{
					width:180rpx;
					color: #333333;
				}
				.like-desc-box-b{
					color: #626262;
				}
			}
		}


	}
	.footer {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
background-color: rgba(255, 255, 255, 0.1);
		padding: 20rpx;
		box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
	
		.add-cart-btn {
			background: #ff5000;
			color: #fff;
			border-radius: 50rpx;
		}
	}


</style>